import request from "./request";

// 获取指定用户的角色
export const getRoleList = (
  data: IAdminListType
): PromiseResType<RoleResType> => request.get("/role/list", { params: data });
// 修改账号状态
export const RoleUpdateStatus = (data: RoleUpdate): Promise<any> =>
  request.post(`/role/updateStatus/${data.id}?status=${data.status}`);
